
<%@page import="java.text.NumberFormat"%>
<%@page import="models.Domain"%>
<%@page import="com.googlecode.objectify.Query"%>
<%
Query<Domain> list = (Query<Domain>) request.getAttribute("list");
String ip = (String) request.getAttribute("ip");
String pages = (String) request.getAttribute("page");
NumberFormat nf = NumberFormat.getInstance();
String title="Directory "+ip+" - Page "+pages;
String description="Directory for domains  start with "+ip+" - Page "+pages+" - Find information domain,lookup ip,lookup whois,network tool,check pr";
String keyword="Directory";
String url = "start/"+ip;
int k=list.count();
%>

<jsp:include page="layout/header.jsp">
	<jsp:param name="title" value="<%=title %>" />
	<jsp:param name="description" value="<%=description %>" />
	<jsp:param name="keywords" value="<%=keyword %>" />
</jsp:include>

<div id="content">

	<div class='search'>
		<form action="/search" method="get">
			<input class="input" type="text" name="name"
				onclick="javascript:if(this.value=='Search the site here...')this.value=''"
				value="Search the site here...">
			<button type="submit">Search</button>
		</form>
		<div class="clear"></div>
		<div class="adv728 clear_div">
			<jsp:include page="/adv/728x90.jsp"></jsp:include>
		</div>
	</div>

	<div>
		<jsp:include page="/adv/728x15.jsp"></jsp:include>
		<h1>Directory for domains  start with <%=ip%></h1>
		<ul class="list_drec">
  		 	<%
  		 	if(list.count()>0)
  		 	{
  		 	for (Domain ar: list) {
  		 	%>
   		 		<li><a href="/site/<%=ar.getDomain() %>"><%=ar.getDomain() %></a></li>
  		 	<%
  		 	}
  		 	}
  		 	%>
  		 </ul>
  		 <div class="clear"></div>
	 	 <ul class="paginate">
			<li >
				<jsp:include page="paginate.jsp">
					<jsp:param name="cur_page" value="<%=pages %>"/>
					<jsp:param name="url" value="<%=url %>"/>
					<jsp:param name="number_game" value="<%=k %>"/>
				</jsp:include>
			</li>
		</ul> 
	</div>
</div>

<jsp:include page="layout/footer.jsp"></jsp:include>
